/*
 * SpringUnloadCommand.cpp
 *
 *  Created on: Nov 21, 2008
 *      Author: Ryan
 */

#include "SpringUnloadCommand.h"

SpringUnloadCommand::SpringUnloadCommand( const OOInterface::Point3f& loc  ) :
	OOInterface::UnloadCommand( loc )
{
}

SpringUnloadCommand::~SpringUnloadCommand()
{
}

::Command* SpringUnloadCommand::getCommand() const
{
	::Command* cmd = new ::Command;
	cmd->id = CMD_UNLOAD_UNITS;

	cmd->params.push_back( getUnloadLocation().getX() * 8);
	cmd->params.push_back( getUnloadLocation().getY() );
	cmd->params.push_back( getUnloadLocation().getZ() * 8);

	return cmd;
}
